<extend name="Index/index"/>

<block name="main">
<!-- Page Heading -->
    <div class="row">
        <div class="col-lg-12">
            <h1 class="page-header">
                <{$title}>
            </h1>
            <ol class="breadcrumb">
                <li>
                    <i class="fa fa-dashboard"></i>  <a href="<{:U('Link/index')}>"> 友情链接列表 </a>
                </li>
                <li class="active">
                    <i class="fa fa-edit"></i>  <a href="<{:U('Link/add')}>"> 添加链接 </a>
                </li>
                <li class="active">
                    <i class=""></i> 链接
                </li>
            </ol>
        </div>
    </div>
<!-- /.row -->
    <div class="row">
        <table class="mt20 table table-hover">
            <tr>
                <th>I D</th>
                <th>站名</th>
                <th>网址</th>
                <th>操作</th>
            </tr>
            <volist name="list" id="v">
                <tr>
                    <td><{$v.id}></td>
                    <td><{$v.name}></td>
                    <td><{$v.link}></td>
                    <td class="col-md-2">
                        <a href="<{:U('edit',array('id'=>$v['id']))}>" class="btn btn-primary btn-sm">编辑</a>
                        <a href="<{:U('del',array('id'=>$v['id']))}>" class="btn btn-danger btn-sm">删除</a>
                    </td>
                </tr>
            </volist>
        </table>       
    </div>
</block>


